<?php
session_start();
if(isset($_SESSION['user'])) {
	echo json_encode(array('islogin' => true));
} else {
	echo json_encode(array('islogin' => false));
}
?>